package classloader;

import java.io.IOException;

public class BootstrapClassLoaderDemo {
    public static void main(String[] args) throws IOException {
        //通过String类获取到它的类加载器。String.class 取到当前堆上的class对象
        ClassLoader classLoader = String.class.getClassLoader();
        System.out.println(classLoader);   //输出null

        //让程序不再退出
        System.in.read();
    }
}
